import request from "@/utils/request";


//查询未审核的文章
export function articleAll(query) {
    return request({
        url: "/article/article/list",
        method: "get",
        params: query
    });
}

//查询修改文章
export function articleOne(id) {
    return request({
        url: "/article/article/"+id,
        method: "get",
    });
}

//立即通过
export function articlePass(data) {
    return request({
        url: "/article/article/pass",
        method: "put",
        data: data
    });
}
//驳回
export function articleDelete(ids) {
    return request({
        url: "/article/article/" +ids,
        method: "delete",
    });
}

